ScanDeviceManager ClearInterlock

Clears the specified interlock from the specified device.

public void ClearInterlock(string deviceUniqueName, string interlockName)

 

Return value

void  

 

Parameters

string deviceUniqueName Unique name of the device
string interlockName Name of the interlock to be cleared

 

Example

Copy
 private void ScanDeviceManager_DeviceInterlockTriggered(object sender, DeviceInterlockEventArgs e)
 {
     // Check for reason
     bool status = CheckInterlock(e.DeviceUniqueName, e.InterlockName);
     if (status)
     {
         scanDeviceManager.ClearInterlock(e.DeviceUniqueName, e.InterlockName);
     }
     else
     {
         UpdateError(e.Message);
     }
 }